<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Battle: C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Plateau.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Battle
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Documents and Settings/Administrateur/Mes documents/space-battle-insa/DLL_Cpp/Headers/Modele/Plateau.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#pragma once</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;FabriquePoidsMoucheCase.h&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;Case.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;Position.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">using namespace </span>std;
<a name="l00017"></a>00017 
<a name="l00022"></a>00022 <span class="keyword">class </span><span class="keyword">__declspec( dllexport )</span> <a class="code" href="class_plateau.html">Plateau</a> {
<a name="l00023"></a>00023 <span class="keyword">private</span> :
<a name="l00024"></a>00024         <span class="keyword">static</span> <a class="code" href="class_plateau.html">Plateau</a>* INSTANCE;                                                               
<a name="l00025"></a>00025         <span class="keyword">static</span> <a class="code" href="class_fabrique_poids_mouche_case.html">FabriquePoidsMoucheCase</a>* <a class="code" href="class_fabrique_poids_mouche_case.html">FabriquePoidsMoucheCase</a>;
<a name="l00026"></a>00026         vector&lt;vector&lt;pair&lt;double,double&gt;&gt; &gt; tabAsteroides;             
<a name="l00027"></a>00027         vector&lt;vector&lt;Case*&gt; &gt; grille;                                                  
<a name="l00028"></a>00028         vector&lt;vector&lt;bool&gt; &gt; caseAccessible;                                   
<a name="l00029"></a>00029         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> longueur;                                                                  
<a name="l00030"></a>00030         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hauteur;                                                                   
<a name="l00036"></a>00036         <a class="code" href="class_plateau.html">Plateau</a>() : longueur(0), hauteur(0) {};
<a name="l00037"></a>00037 
<a name="l00049"></a>00049         <span class="keywordtype">int</span> calculerTxRemplissageCase(vector&lt;pair&lt;double,double&gt;&gt;,<span class="keywordtype">double</span>,<span class="keywordtype">double</span>);
<a name="l00050"></a>00050 
<a name="l00059"></a>00059         <span class="keywordtype">bool</span> isPositionInPolygon(vector&lt;pair&lt;double,double&gt;&gt;,pair&lt;double,double&gt;) <span class="keyword">const</span>;
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="keyword">public</span> :
<a name="l00066"></a>00066         <span class="keyword">static</span> <span class="keywordtype">void</span> destructeurPlateau();
<a name="l00067"></a>00067 
<a name="l00073"></a>00073         <span class="keyword">static</span> <a class="code" href="class_plateau.html">Plateau</a>* getSingletonPlateau();
<a name="l00074"></a>00074 
<a name="l00079"></a>00079         <span class="keywordtype">void</span> instancierGrille();
<a name="l00080"></a>00080 
<a name="l00085"></a>00085         vector&lt;vector&lt;pair&lt;double,double&gt;&gt; &gt; getTabAsteroides() <span class="keyword">const</span>;
<a name="l00086"></a>00086 
<a name="l00094"></a>00094         <a class="code" href="class_case.html">Case</a>* getCase(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00095"></a>00095 
<a name="l00103"></a>00103         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getNbArtefactsCase(<span class="keywordtype">int</span>,<span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00104"></a>00104 
<a name="l00112"></a>00112         Case::TypeCase getTypeCase(<span class="keywordtype">int</span> x,<span class="keywordtype">int</span> y)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (this-&gt;grille[x][y])-&gt;type(); };
<a name="l00113"></a>00113 
<a name="l00118"></a>00118         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getLongueur()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;longueur; };
<a name="l00119"></a>00119 
<a name="l00124"></a>00124         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getHauteur()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;hauteur; };
<a name="l00125"></a>00125 
<a name="l00130"></a>00130         <span class="keywordtype">void</span> afficherTypeCases() <span class="keyword">const</span>;
<a name="l00131"></a>00131 
<a name="l00139"></a>00139         <span class="keywordtype">bool</span> isCaseAccessible(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <span class="keyword">const</span>;
<a name="l00140"></a>00140 
<a name="l00145"></a>00145         pair&lt;double,double&gt; getXYminAsteroide(vector&lt;pair&lt;double,double&gt;&gt;) <span class="keyword">const</span>;
<a name="l00146"></a>00146 
<a name="l00151"></a>00151         pair&lt;double,double&gt; getXYmaxAsteroide(vector&lt;pair&lt;double,double&gt;&gt;) <span class="keyword">const</span>;
<a name="l00152"></a>00152 
<a name="l00161"></a>00161         <span class="keywordtype">bool</span> setCaseAccessible(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <span class="keywordtype">bool</span>);
<a name="l00162"></a>00162 };
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 11 2012 23:30:05 for Space Battle by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
